package com.cd.javacxy.common.model.query;

import com.cd.javacxy.common.model.enums.OrderByEnum;
import com.cd.javacxy.common.model.enums.SolveEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author cookie
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class AskQuery extends BaseQuery {
    @NotBlank(message = "请求参数错误")
    private Integer askId;
    @NotBlank(message = "请求参数错误")
    private Integer userId;

    private SolveEnum solveType;

    private boolean showContent;

    private OrderByEnum orderBy;

    private String startDate;

    private String endDate;

    private Integer pCategoryId;

    private Integer categoryId;

    private Integer topCount;

    /**
     * 最佳回复id
     */
    @NotBlank(message = "请求参数错误")
    private Integer bestAnswerId;

}
